//
//  CardView.h
//  SmartCheckout
//
//  Created by Barak Edry on 1/1/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ReflectionView.h"
#import "Card.h"

@interface CardView : ReflectionView{
    
    IBOutlet UIImageView *backgroundImage;
    UILabel *ownerLabel;
    UILabel *cardNumLabel;
    UILabel *nameLabel;    
    UIImageView *vendorImage;    
    Card* card;
}

@property (strong, nonatomic) IBOutlet UILabel *ownerLabel;

@property (strong, nonatomic) IBOutlet UILabel *cardNumLabel;

@property (strong, nonatomic) IBOutlet UILabel *nameLabel;

@property (strong, nonatomic) IBOutlet UIImageView *vendorImage;

@property (strong, nonatomic) UIImageView *backgroundImage;
@property (strong, readwrite, nonatomic) Card* card;

+ (CardView*) cardViewWithCard:(Card*)card;

- (void) update;
@end
